package com.hhs.storage.controller;

import com.hhs.storage.service.impl.WorkbenchService;
import com.hhs.storage.util.SysUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author: HuangHaiShui
 * @description: 待办工作台
 * @date: 2022/12/12 14:12
 * @version: 1.0
 */
@RestController
@RequestMapping("bench")
public class WorkbenchController {
    @Resource
    WorkbenchService workbenchService;

    //TODO: 业务收款单确认要添加提示
    //预警信息查询
    @RequestMapping(value = "warn")
    public Map<String, Object> earlyWarning(HttpServletRequest request){
        //获取当前请求的发起人id
        String userId = SysUtil.getLoginUserId(request);
        return workbenchService.earlyWarning(userId);
    }

}
